package com.coding.pojo;

import java.util.Objects;

/**
 * @auther wangchenghao
 * @date 2020/8/3
 **/
public class PoemBasic {
    private Poem poem;
    private Poet poet;
    private OssImages ossImages;

    public PoemBasic() {
    }

    public PoemBasic(Poem poem, Poet poet, OssImages ossImages) {
        this.poem = poem;
        this.poet = poet;
        this.ossImages = ossImages;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        PoemBasic poemBasic = (PoemBasic) o;
        return Objects.equals(poem, poemBasic.poem) &&
                Objects.equals(poet, poemBasic.poet) &&
                Objects.equals(ossImages, poemBasic.ossImages);
    }

    @Override
    public int hashCode() {
        return Objects.hash(poem, poet, ossImages);
    }

    public Poem getPoem() {
        return poem;
    }

    public void setPoem(Poem poem) {
        this.poem = poem;
    }

    public Poet getPoet() {
        return poet;
    }

    public void setPoet(Poet poet) {
        this.poet = poet;
    }

    public OssImages getOssImages() {
        return ossImages;
    }

    public void setOssImages(OssImages ossImages) {
        this.ossImages = ossImages;
    }
}
